package com.hjm.project.finance.agentDeductionsDetails.domain;

import com.hjm.framework.aspectj.lang.annotation.Excel;
import com.hjm.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 扣款终端明细对象 agent_deductions_details
 *
 * @author maker-platform
 * @date 2022-10-21
 */
@Data
public class AgentDeductionsDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Integer id;

    /** 4 电签 */
    @Excel(name = "终端类型",readConverterExp = "0=传统终端,4=电签POS,5=GB传统,6=GB电签,7=GB电签二")
    private String posType;

    /** sn */
    @Excel(name = "sn")
    private String sn;

    /** 1 未激活 2 伪激活 */
    @Excel(name = "激活类型 ",readConverterExp = "1=未激活,2=伪激活")
    private Integer deductionType;

    /** 扣款比例 */
    @Excel(name = "扣款比例")
    private String ratio;

    /** 扣款金额 */
    @Excel(name = "扣款金额")
    private BigDecimal deductionMoney;

    /** 是否扣款  0否 1 是 */
//    @Excel(name = "是否扣款",readConverterExp = "0=否,1=是")
    private Integer isDeduction;

    /** 扣款日期 */
//    @Excel(name = "扣款日期")
    private String deductionDate;

    /** 关联扣款 */
    private String ad_id;

    /** 扣款开始时间 */
    private String begin_valid;

    /** 扣款结束时间 */
    private String end_valid;









    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("posType", getPosType())
            .append("sn", getSn())
            .append("deductionType", getDeductionType())
            .append("ratio", getRatio())
            .append("deductionMoney", getDeductionMoney())
            .append("isDeduction", getIsDeduction())
            .append("deductionDate", getDeductionDate())
            .toString();
    }
}
